package com.metaapp.image.api

import com.metaapp.image.data.Image
import retrofit2.http.GET
import retrofit2.http.Query
import com.metaapp.image.data.Result
import io.reactivex.Flowable

/**
 * Created by huangshengsen on 2020/8/11.
 */
interface ImageApi {
    @GET("/j")
    fun getList(
        @Query("q") q: String = "",
        @Query("sn") sn: Int,
        @Query("pn") pn: Int
    ): Flowable<Result<Image>>
}